Metin |
Menü konumu |
---|
Taslak → Metin |
Tezgahlar |
Taslak, Mimari |
Varsayılan kısayol |
T E |
Versiyonda tanıtıldı |
- |
Ayrıca bkz |
Etiket, Şekil dizesi |
Metin aracı, geçerli belgede belirli bir noktaya bir metin parçası ekler. Taslak araç çubuğunda Çizgi stili setini kullanır.
Bir başlık ve ok içeren bir metin etiketi oluşturmak için Etiket öğesini kullanın. Düz metin veya 3D harfler oluşturmak için Şekil dizesi ile Parça Çıkar kullanın.
See also: Draft Tray and Draft Snap.
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts (for version 1.0).
See also: Property editor.
A Draft Text object is derived from an App FeaturePython object and inherits all its properties. The following properties are additional unless otherwise stated.
Base
Annotation
Enumeration
): specifies the annotation style applied to the text. See Draft AnnotationStyleEditor.Float
): specifies the general scaling factor applied to the text.Display Options
Enumeration
): specifies how the text is displayed. If it is World
the text will be displayed on a plane defined by its VeriPlacement. If it is Screen
the text will always face the screen. This is an inherited property. The mentioned options are the renamed options (introduced in version 0.21).Graphics
Color
): not used.Float
): not used.Text
Ayrıca bkz.: Taslak API ve FreeCAD Betik esasları.
text = make_text(string, placement=None, screen=False)
Text
nesnesini, bir FreeCAD.Vector
ile tanımlanmış bir point
nesnesinde oluşturur.stringlist
bir dizedir veya bir dize listesidir; eğer bir liste ise, her eleman kendi satırında görüntülenir.screen
True
ise, metin her zaman kamera görüntüleme yönüne bakar, aksi takdirde sahne eksenleriyle aynı hizada olur ve XY düzleminde uzanır.Text
'in görünüm özellikleri, niteliklerinin üzerine yazılarak değiştirilebilir; örneğin, ViewObject.FontSize
üzerine, yeni boyutun milimetre cinsinden üzerine yazın.
Örnek:
import FreeCAD as App
import Draft
doc = App.newDocument()
t1 = "This is a sample text"
p1 = App.Vector(0, 0, 0)
t2 = ["First line", "second line"]
p2 = App.Vector(1000, 1000, 0)
text1 = Draft.make_text(t1, p1)
text2 = Draft.make_text(t2, p2)
text1.ViewObject.FontSize = 200
text2.ViewObject.FontSize = 200
zaxis = App.Vector(0, 0, 1)
t3 = ["Upside", "down"]
p3 = App.Vector(-1000, -500, 0)
place3 = App.Placement(p3, App.Rotation(zaxis, 180))
text3 = Draft.make_text(t3, place3)
text3.ViewObject.FontSize = 200
doc.recompute()